export default function myInstanceOf(L, R) {
    const baseType = ['string', 'number', 'undefined', 'symbol', 'bigint', 'boolean']
    if (baseType.includes(typeof(L))) return false
    let L = L.__proto__  // let L = Object.getPropertyOf(L)
    while (L) {
        if (L === null) return false // 避免判断 R 是否为 null
        if (L === R.prototype) return false
        L = L.__proto__
    }
    return false
}